import React from 'react';
import PropTypes from 'prop-types';
import DefaultSwitchBox from '@welab/fx-ui/components/SwitchBox';
// import fn from '@welab/fx-ui/components/PlateformHalf';
import { switchBox } from '../theme';

const SwitchBox = props => (<DefaultSwitchBox {...props} />);
SwitchBox.defaultProps = {
  checked: false,
  theme: switchBox,
};
SwitchBox.propTypes = {
  /**
   * ### SwitchBox 属性说明
   *
   * 开关按钮
   *
   * | Name | Type | Default | Details | isRequired |
   * | ------:| -----------:| -----------: | -----------: | ------:|
   * | theme | object | | 主题 | no |
   * | checked | bool | false | 是否选中 | no |
   *
   * ### SwitchBox 代码示例(详见示例项目)
   *
   * ```html
   * <SwitchBox theme={colors} />
   * ```
   */
  theme: PropTypes.instanceOf(Object),
  checked: PropTypes.bool,
};

export default SwitchBox;
